package jgl.vajra.management.part.mine.viewModel;

import java.util.Map;

import io.reactivex.Observable;
import jgl.vajra.management.part.mine.contract.MyCarListContract;
import jgl.vajra.management.part.mine.model.MyCarListModel;
import jgl.vajra.management.widget.mvvm.factory.CreateModel;
import jgl.vajra.management.widget.retrofithelper.rxsubscriber.ProgressObserver;

@CreateModel(MyCarListModel.class)
public class MyCarListViewModel extends MyCarListContract.ViewModel{
    @Override
    public Observable getMyCarList(Map<String, Object> map) {
        return mModel.getMyCarList(map);
    }

    @Override
    public void deleteCarData(Map<String, Object> map) {
        mModel.deleteCarData(map).subscribe(new ProgressObserver<Object>(true,this) {
            @Override
            public void _onNext(Object o) {

            }
        });
    }
}
